<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
	<div class="form-group">
		<label for="c-service_time" class="control-label col-xs-12 col-sm-2">{:__('服务时间')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-service_time"  value="{:date('Y-m-d H:i:s')}"  class="form-control datetimepicker" data-rule="required"
				   data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[service_time]" type="text">

		</div>
	</div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('服务时长(分钟)')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-service_hours" data-rule="required;range(0~999)" class="form-control" name="row[service_hours]" type="number" value="">
        </div>
    </div>
	<div class="form-group">
		<label for="c-service_client" class="control-label col-xs-12 col-sm-2">{:__('服务对象')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-service_client" data-source='{:config_to_source($service_client)}' data-field="value" data-primary-key="key" data-order-by="key" data-multiple="true" class="form-control selectpage" name="row[service_client]" type="text" value=""   >
		</div>
	</div>

	<div class="form-group">
		<label for="record-content" class="control-label col-xs-12 col-sm-2">{:__('跟进内容')}:</label>
		<div class="col-xs-12 col-sm-8">
			<textarea id="record-content"  data-rule="required" class="form-control editor" name="row[content]" rows="2"></textarea>
		</div>
	</div>
	<div class="form-group">
		<label for="c-image" class="control-label col-xs-12 col-sm-2">{:__('附件')}:</label>
		<div class="col-xs-12 col-sm-8">
			<div class="input-group">
				<input id="c-image" class="form-control" size="50" name="row[image]" type="text" value="" placeholder="可以为空">
				<div class="input-group-addon no-border no-padding">
					<span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="*" data-multiple="true" data-preview-id="p-image"><i class="fa fa-upload"></i> {:__('上传')}</button></span>

				</div>
				<span class="msg-box n-right" for="c-image"></span>
			</div>
			<ul class="row list-inline plupload-preview" id="p-image"></ul>
		</div>
	</div>
	<div class="form-group">
		<label for="c-next_time" class="control-label col-xs-12 col-sm-2">{:__('下次跟进')}:</label>
		<div class="col-xs-12 col-sm-8">
			<input id="c-next_time"  value=""  class="form-control datetimepicker"
				   data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[next_time]" type="text" placeholder="{:__('下次跟进时间，如不需要再跟进留空')}" >

		</div>
	</div>
	{if isset($status_row)&&$status_row['content_list']}
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('阶段')}:</label>
		<div class="col-xs-12 col-sm-8">
			<select class="form-control selectpicker" data-rule="required" name="row[follow_status]">
				{foreach name="$status_row['content_list']" item="vo"}
				<option value="{$key}" {in name="key" value="$row.follow_status" }selected{/in}>{$vo}</option>
				{/foreach}
			</select>

		</div>
	</div>
	{/if}
	<div class="form-group">
		<label class="control-label col-xs-12 col-sm-2">{:__('跟进方式')}:</label>
		<div class="col-xs-12 col-sm-8">
			<div class="input-group">
				{:build_select('row[record_type]', $record_type_list,0, ['class'=>'form-control selectpicker', 'data-rule'=>'required'])}
			</div>
		</div>
	</div>
	<div id="extend"></div>
	<div class="form-group layer-footer">
		<label class="control-label col-xs-12 col-sm-2"></label>
		<div class="col-xs-12 col-sm-8">
			<button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
			<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
		</div>
	</div>
</form>



